package com.wtf.dsp.core.model;

import com.wtf.dsp.core.enums.SqlResponseMapper;

import java.util.Map;

/**
 * ClassName: ExecSqlRequest
 * Description:
 * date: 2024/3/6 15:49
 *
 * @author linhuanyou
 * @version 1.0
 */
/**SQL执行请求类*/
public class ExecSqlRequest {
    /**命名空间*/
    private String ns;
    /**数据源*/
    private String ds;
    /**Mapper名称空间*/
    private String mns;
    /**SQL标识*/
    private String sqlId;
    /**SQL参数集*/
    private Map<String,Object> params;
    /**SQL响应类型*/
    private SqlResponseMapper sqlResponseMapper;
    /**分页页码*/
    private Integer page;
    /**分页条数*/
    private Integer limit;

    public String getNs() {
        return ns;
    }

    public void setNs(String ns) {
        this.ns = ns;
    }

    public String getDs() {
        return ds;
    }

    public void setDs(String ds) {
        this.ds = ds;
    }

    public String getMns() {
        return mns;
    }

    public void setMns(String mns) {
        this.mns = mns;
    }

    public String getSqlId() {
        return sqlId;
    }

    public void setSqlId(String sqlId) {
        this.sqlId = sqlId;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public SqlResponseMapper getSqlResponseMapper() {
        return sqlResponseMapper;
    }

    public void setSqlResponseMapper(SqlResponseMapper sqlResponseMapper) {
        this.sqlResponseMapper = sqlResponseMapper;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }


    @Override
    public String toString() {
        return "ExecSqlRequest{" +
                "ns='" + ns + '\'' +
                ", ds='" + ds + '\'' +
                ", mns='" + mns + '\'' +
                ", sqlId='" + sqlId + '\'' +
                ", params=" + params +
                ", sqlResponseMapper=" + sqlResponseMapper +
                ", page=" + page +
                ", limit=" + limit +
                '}';
    }
}
